package com.paipai.dao;

import com.paipai.entity.Round;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface RoundMapper extends Mapper<Round> {
    @Select("select * from round where state=1 and startTime >=#{startDate} and startTime <=#{endDate}")
    List<Round>  selectOneDayRounds(@Param(value ="startDate" ) Date startDate,@Param(value ="endDate" ) Date endDate);
}